package com.iflysse.controller;

import com.iflysse.pojo.vo.common.CommonVoResp;
import com.iflysse.pojo.vo.req.*;
import com.iflysse.pojo.vo.resp.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/teacherClass")
@Api(value = "教师端班级接口")
public class TeacherClassController {


    /**
     * 教师端查询我的教学班级列表接口
     * @param teacherClassVoReq
     * @return
     */
    @PostMapping("/queryAllClass")
    @ApiOperation(value = "查询班级列表")
    public TeacherAllClassVoResp queryAllClass(TeacherClassVoReq teacherClassVoReq){

        TeacherAllClassVoResp teacherAllClassVoResp=new TeacherAllClassVoResp();

        teacherAllClassVoResp.setCode(1000);
        teacherAllClassVoResp.setMsg("查询成功");

        List<TeacherAllClassResp> teacherAllClassRespList=new ArrayList<TeacherAllClassResp>();
        TeacherAllClassResp teacherAllClassResp=new TeacherAllClassResp();
        teacherAllClassResp.setClassId("12345");
        teacherAllClassResp.setClassName("java6班");
        teacherAllClassResp.setClassNum(51);
        teacherAllClassRespList.add(teacherAllClassResp);
        teacherAllClassVoResp.setResult(teacherAllClassRespList);

        return teacherAllClassVoResp;
    }


    /**
     * 创建教学班级接口
     * @param addTeacherClassVoReq
     * @return
     */
    @PostMapping("/addTeacherClass")
    @ApiOperation(value = "创建教学班级接口")
    public CommonVoResp addTeacherClass(AddTeacherClassVoReq addTeacherClassVoReq){
        CommonVoResp commonVoResp=new CommonVoResp();
        commonVoResp.setCode(1000);
        commonVoResp.setMsg("创建成功");
        return commonVoResp;
    }

    /**
     * 删除教学班级接口
     * @param deleteTeacherClassVoReq
     * @return
     */
    @PostMapping("/deleteTeacherClass")
    @ApiOperation(value = "删除教学班级接口")
    public CommonVoResp deleteTeacherClass(DeleteTeacherClassVoReq deleteTeacherClassVoReq){
        CommonVoResp commonVoResp=new CommonVoResp();
        commonVoResp.setCode(1000);
        commonVoResp.setMsg("删除成功");
        return commonVoResp;
    }



    /**
     * 教师端教学班级的详情信息查询接口（教学活动和班级学生上方信息接口）
     * @param teachingClassIdVoReq
     * @return
     */
    @PostMapping("/queryClassInfo")
    @ApiOperation(value = "教师端教学班级的详情信息查询接口（包含教学活动和班级学生上方信息接口）")
    public TeacherClassVoResp queryClassInfo(TeachingClassIdVoReq teachingClassIdVoReq){
        TeacherClassVoResp teacherClassVoResp=new TeacherClassVoResp();
        return teacherClassVoResp;
    }

    /**
     * 老师端修改班级信息
     */
    @PostMapping("/updateClassInfo")
    @ApiOperation(value = "老师端修改班级信息")
    public CommonVoResp updateClassInfo(UpdateTeacherClassVoReq updateTeacherClassVoReq){

        CommonVoResp commonVoResp=new CommonVoResp();
        return commonVoResp;
    }



}
